package com.wzl.myviewgroup;

import androidx.appcompat.app.AppCompatActivity;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.wzl.myviewgroup.SlideMenu.SlideMenuViewGroup;

public class SlideMenuActivity extends AppCompatActivity {

    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_slide_menu);

        SlideMenuViewGroup slidMenu = findViewById(R.id.slide_menu);
        slidMenu.setOnEditClickListener(new SlideMenuViewGroup.OnEditClickListener() {
            @Override
            public void onReadClick(View v) {
                Log.d("SlideMenuActivity", "onReadClick");
            }

            @Override
            public void onTopClick(View v) {
                Log.d("SlideMenuActivity", "onTopClick");
            }

            @Override
            public void onDeleteClick(View v) {
                Log.d("SlideMenuActivity", "onDeleteClick");
            }
        });
    }
}